package cn.itsource.basic.query;

import lombok.Data;

/**
 * 查询类：基类
 */
@Data
public class BaseQuery {
    //当前页
    private Integer currentPage = 1;
    //每一页显示的条数
    private Integer pageSize = 5; //getPageSize
    //关键字查询
    private String keyword;
    //计算limit的第一个参数
    public Integer getBegin(){
        return (this.currentPage-1)*this.pageSize;
    }
}